#ifndef BUFFERMOVEVIEW_H
#define BUFFERMOVEVIEW_H

#include <QWidget>
#include "../ProgramSet/buffermoveinstruction.h"
namespace Ui {
class BufferMoveView;
}

class BufferMoveView : public QWidget
{
    Q_OBJECT

public:
    explicit BufferMoveView(int styleIdIn,QWidget *parent = 0);
    ~BufferMoveView();

    /**
     * @brief getInput             获取界面输入
     */
    void getInput(BufferMoveInstruction &instructionParaOut);

    /**
     * @brief updateView            根据instructionPara更新数据显示在界面
     */
    void updateView();


    /**
     * @brief changeLanguage      界面语言切换
     * @param language
     */
    void changeLanguage(int language);

signals:
    void saveInstructionSignal(const QString& instructionStr);

private slots:
    void on_save_Btn_clicked();
    void on_clearNote_Btn_clicked();
private:
    void finishEditInstruction(BufferMoveInstruction instructionParaIn,QString &instructionStrOut);
public:
    QString instructionStr;
    BufferMoveInstruction *bufferIns;
private:
    Ui::BufferMoveView *ui;

};

#endif // BUFFERMOVEVIEW_H
